import request from '@/utils/request'

// 查询会员列表
export function listUser(query) {
  return request({
    url: '/app/user/list',
    method: 'get',
    params: query,
    headers: {
      contentType: 'application/json'
    }
  })
}

// 查询会员详细
export function getUser(userId) {
  return request({
    url: '/app/user/' + userId,
    method: 'get'
  })
}

// 导出会员
export function exportUser(query) {
  return request({
    url: '/app/user/export',
    method: 'get',
    params: query
  })
}

// 积分明细
export function scoreInfo(query) {
  return request({
    url: '/app/user/scoreInfo',
    method: 'get',
    params: query
  })
}

export function changeScore(query) {
  return request({
    url: '/app/user/changeScore',
    method: 'post',
    params: query
  })
}
